/******************************************************************
* Copyright (C), 2005-2007, HISILICON Tech. Co., Ltd.             *
*                                                                 *
* File name: pl110_clcdc.h                                        *
*                                                                 *
* Description:                                                    *
*     The CLCDC driver header file for public use.                *
*                                                                 *
* Author:  H55798                                                 *
*                                                                 *
* Version: v0.1                                                   *
*                                                                 *
* Date:    2007.04.14                                             *
*                                                                 *
* History:                                                        *
*                                                                 *
*   1. Date:                                                      *
*      Author:                                                    *
*      Modification:                                              *
*   2. ...                                                        *
*******************************************************************/

#ifndef __PL110_CLCDC_H__   /*Begin, __PL110_CLCDC_H__*/
#define __PL110_CLCDC_H__

#ifdef __cplusplus
extern "C" { /* allow C++ to use these headers */
#endif /* __cplusplus */

#include <types.h>
#include "himemmap.h"

#define PWM_BASE_ADDRESS                    0x30082000

#ifdef LCD_QVGA
#define FRAME_BUFFER_SIZE                  (192*1024)
#define FRAME_BUFFER_PA                    (0x30500000)
#endif

#ifdef LCD_WQVGA
#define FRAME_BUFFER_SIZE                  (192*1024)
#define FRAME_BUFFER_PA                    (0x30500000)
#endif

#ifdef LCD_VGA
#define FRAME_BUFFER_SIZE                  (640*480*2)
#define FRAME_BUFFER_PA                    (HISI_EDC_FRAME_BUFFER_PA)
#endif

#ifdef LCD_WVGA
#define FRAME_BUFFER_SIZE                  (800*480*2)
#define FRAME_BUFFER_PA                    (HISI_EDC_FRAME_BUFFER_PA)
#endif

#define PWM_OUTA_EN_OFFSET					0x00
#define PWM_OUTA_DIV_OFFSET    				0x08
#define PWM_OUTA_WIDE_OFFSET				0x10
#define PWM_OUTA_DIV        				32

#ifdef __cplusplus
} /* allow C++ to use these headers */
#endif /* __cplusplus */

#endif  /*End, __PL110_CLCDC_H__*/


